<!--空白弹出页面参考模版-->
{extend name='public/layer_base' /}
{block name='content'}
<!-- 这里写内容即可 -->
<div class="row">
    <div class="col-md-12">
        <!--数据列表顶部-->
        <div class="box-header">
            <div>
                <div class="box-body">
                    <div class="col-md-12">
                        <div class="box box-primary">
                            <!-- 表单 -->
                            <form  class="form-horizontal dataForm">
                                <!-- 表单字段区域 -->
                                <div class="box-body">
                                    <div class="form-group">
                                        <label for="member_id" class="col-sm-4 control-label">用户融云ID</label>
                                        <div class="col-sm-10 col-md-4">
                                            <input readonly value="{$data.member_id|default=''}"
                                                   placeholder="用户融云ID" type="text" class="form-control field-text">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="member_info" class="col-sm-4 control-label">用户信息</label>
                                        <div class="col-sm-10 col-md-4">
                                            <input readonly value="【UID：{$data.me_uid}】【手机号：{$data.me_phone}】【昵称：{$data.me_nick_name}】"
                                                   placeholder="用户信息" type="text" class="form-control field-text">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="me_czlwysp_rewards_word" class="col-sm-4 control-label">是否享受【充值文字音视频】奖励</label>
                                        <div class="col-sm-10 col-md-4">
                                            <input readonly value="{$data.me_czlwysp_rewards_word|default=''}"
                                                   placeholder="用户融云ID" type="text" class="form-control field-text">
                                        </div>
                                    </div>


                                    <div class="form-group">
                                        <label for="zs_wz" class="col-sm-4 control-label"><span style="color: red">自身获得文字收益</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="zs_wz" name="zs_wz" value="{$data.zs_wz}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: red">{$data.zs_wz_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
                                        <label for="zs_yp" class="col-sm-4 control-label"><span style="color: red">自身获得音频收益</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="zs_yp" name="zs_yp" value="{$data.zs_yp}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: red">{$data.zs_yp_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
                                        <label for="zs_sp" class="col-sm-4 control-label"><span style="color: red">自身获得视频收益</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="zs_sp" name="zs_sp" value="{$data.zs_sp}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: red">{$data.zs_sp_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
                                        <label for="zs_lw" class="col-sm-4 control-label"><span style="color: red">自身获得礼物收益</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="zs_lw" name="zs_lw" value="{$data.zs_lw}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: red">{$data.zs_lw_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>


                                    <div class="form-group">
                                        <label for="sj_wz" class="col-sm-4 control-label"><span style="color: blue">身为【超推】获得文字奖励比例</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="sj_wz" name="sj_wz" value="{$data.sj_wz}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: blue">{$data.sj_wz_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
                                        <label for="sj_yp" class="col-sm-4 control-label"><span style="color: blue">身为【超推】获得语音奖励比例</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="sj_yp" name="sj_yp" value="{$data.sj_yp}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: blue">{$data.sj_yp_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
                                        <label for="sj_sp" class="col-sm-4 control-label"><span style="color: blue">身为【超推】获得视频奖励比例</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="sj_sp" name="sj_sp" value="{$data.sj_sp}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: blue">{$data.sj_sp_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
                                        <label for="sj_lw" class="col-sm-4 control-label"><span style="color: blue">身为【超推】获得礼物奖励比例</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="sj_lw" name="sj_lw" value="{$data.sj_lw}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: blue">{$data.sj_lw_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>


                                    <div class="form-group">
                                        <label for="ssj_wz" class="col-sm-4 control-label"><span style="color: blue">身为【运营】获得文字奖励比例</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="ssj_wz" name="ssj_wz" value="{$data.ssj_wz}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: blue">{$data.ssj_wz_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
                                        <label for="ssj_yp" class="col-sm-4 control-label"><span style="color: blue">身为【运营】获得语音奖励比例</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="ssj_yp" name="ssj_yp" value="{$data.ssj_yp}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: blue">{$data.ssj_yp_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
                                        <label for="ssj_sp" class="col-sm-4 control-label"><span style="color: blue">身为【运营】获得视频奖励比例</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="ssj_sp" name="ssj_sp" value="{$data.ssj_sp}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: blue">{$data.ssj_sp_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
                                        <label for="ssj_lw" class="col-sm-4 control-label"><span style="color: blue">身为【运营】获得礼物奖励比例</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="ssj_lw" name="ssj_lw" value="{$data.ssj_lw}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: blue">{$data.ssj_lw_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>


                                    <div class="form-group">
                                        <label for="sssj_wz" class="col-sm-4 control-label"><span style="color: blue">身为【产品】获得文字奖励比例</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="sssj_wz" name="sssj_wz" value="{$data.sssj_wz}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: blue">{$data.sssj_wz_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
                                        <label for="sssj_yp" class="col-sm-4 control-label"><span style="color: blue">身为【产品】获得语音奖励比例</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="sssj_yp" name="sssj_yp" value="{$data.sssj_yp}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: blue">{$data.sssj_yp_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
                                        <label for="sssj_sp" class="col-sm-4 control-label"><span style="color: blue">身为【产品】获得视频奖励比例</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="sssj_sp" name="sssj_sp" value="{$data.sssj_sp}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: blue">{$data.sssj_sp_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
                                        <label for="sssj_lw" class="col-sm-4 control-label"><span style="color: blue">身为【产品】获得礼物奖励比例</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="sssj_lw" name="sssj_lw" value="{$data.sssj_lw}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: blue">{$data.sssj_lw_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>



                                    <div class="form-group">
<!--                                        <label for="sj_cz" class="col-sm-4 control-label"><span style="color: green">身为【女孩】获得【充值或开通VIP】奖励比例（扫码绑定）</span></label>-->
                                        <label for="sj_cz" class="col-sm-4 control-label"><span style="color: green">身为【女孩】获得【充值】奖励比例（扫码绑定）</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="sj_cz" name="sj_cz" value="{$data.sj_cz}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: green">{$data.sj_cz_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
<!--                                        <label for="sj_hbcz" class="col-sm-4 control-label"><span style="color: green">身为【女孩】获得【充值或开通VIP】奖励比例（VIP绑定）</span></label>-->
                                        <label for="sj_hbcz" class="col-sm-4 control-label"><span style="color: green">身为【女孩】获得【开通VIP】奖励比例（VIP绑定）</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="sj_hbcz" name="sj_hbcz" value="{$data.sj_hbcz}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: green">{$data.sj_hbcz_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>


                                    <div class="form-group">
                                        <label for="ssj_cz" class="col-sm-4 control-label"><span style="color: green">身为【超推】获得【开通VIP】奖励比例（扫码绑定）</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="ssj_cz" name="ssj_cz" value="{$data.ssj_cz}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: green">{$data.ssj_cz_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
                                        <label for="ssj_hbcz" class="col-sm-4 control-label"><span style="color: green">身为【超推】获得【开通VIP】奖励比例（VIP绑定）</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="ssj_hbcz" name="ssj_hbcz" value="{$data.ssj_hbcz}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: green">{$data.ssj_hbcz_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>


                                    <div class="form-group">
                                        <label for="sssj_cz" class="col-sm-4 control-label"><span style="color: green">身为【运营】获得【开通VIP】奖励比例（扫码绑定）</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="sssj_cz" name="sssj_cz" value="{$data.sssj_cz}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: green">{$data.sssj_cz_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
                                        <label for="sssj_hbcz" class="col-sm-4 control-label"><span style="color: green">身为【运营】获得【开通VIP】奖励比例（VIP绑定）</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="sssj_hbcz" name="sssj_hbcz" value="{$data.sssj_hbcz}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: green">{$data.sssj_hbcz_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>


                                    <div class="form-group">
                                        <label for="ssssj_cz" class="col-sm-4 control-label"><span style="color: green">身为【产品】获得【开通VIP】奖励比例（扫码绑定）</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="ssssj_cz" name="ssssj_cz" value="{$data.ssssj_cz}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: green">{$data.ssssj_cz_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>
                                    <div class="form-group">
                                        <label for="ssssj_hbcz" class="col-sm-4 control-label"><span style="color: green">身为【产品】获得【开通VIP】奖励比例（VIP绑定）</span></label>
                                        <div class="col-sm-10 col-md-2">
                                            <input id="ssssj_hbcz" name="ssssj_hbcz" value="{$data.ssssj_hbcz}"
                                                   placeholder="请输入比例数" type="number" class="form-control field-text">
                                        </div>
                                        <label class="col-sm-5 control-label">【原设置：<span style="color: green">{$data.ssssj_hbcz_word}%</span>】【注意：设置成-1，按系统值执行】</label>
                                    </div>





                                    <input name="member_id" id="member_id" type="hidden" value="{$member_id}">


                                    <div class="form-group">
                                        <label for="actionallocationratio" class="col-sm-4 control-label"></label>
                                        <div class="col-sm-10 col-md-4">
                                            <a class="btn btn-success btn-sm ktAjaxButton" data-toggle="tooltip" title=""
                                               data-confirm-title="是否确认" data-confirm-content="确认修改此用户的返利配置？"
                                               data-id="checked"
                                               data-url="{:url('actionallocationratio')}">
                                                确认设置
                                            </a>
                                        </div>
                                    </div>


                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
        //弹框内确认  禁用回车键
        $(document).on('keydown keypress', function(event) {
            if (event.keyCode == 13) {
                event.preventDefault();
            }
        });


        $('body').on('click', '.ktAjaxButton', function (event) {
            console.log("ktAjax")
            event.preventDefault();

            if (adminDebug) {
                console.log('AjaxButton clicked.');
            }
            //是否弹出提示
            let layerConfirm = $(this).data("confirm") || 1;
            //访问方式，1为直接访问，2为layer窗口显示
            let layerType = parseInt($(this).data("type") || 1);
            //访问的url
            let url = $(this).data("url");
            //访问方式，默认post
            let layerMethod = $(this).data("method") || 'post';
            //访问成功后跳转的页面，不设置此参数默认根据后台返回的url跳转
            let go = $(this).data("go") || 'url://reload';
            // let go = 'url://close-refresh';

            //当为窗口显示时可定义宽度和高度
            let layerWith = $(this).data("width") || '80%';
            let layerHeight = $(this).data("height") || '60%';

            //窗口的标题
            let layerTitle = $(this).data('title');

            //当前操作数据的ID
            let dataId = $(this).data("id");

            let dataData;


            if ($("#zs_wz").val() != -1 && $("#zs_wz").val() != 40) {
                layer.msg('【自身获得文字收益】设置错误【只能-1为系统默认，或者40%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#zs_sp").val() != -1 && $("#zs_sp").val() != 40) {
                layer.msg('【自身获得音频收益】设置错误【只能-1为系统默认，或者40%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#zs_yp").val() != -1 && $("#zs_yp").val() != 40) {
                layer.msg('【自身获得视频收益】设置错误【只能-1为系统默认，或者40%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#zs_lw").val() != -1 && $("#zs_lw").val() != 40) {
                layer.msg('【自身获得礼物收益】设置错误【只能-1为系统默认，或者40%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }


            if ($("#sj_wz").val() < -1 || $("#sj_wz").val() > 20) {
                layer.msg('【身为【超推】获得文字奖励比例】设置错误【只能-1为系统默认，或者小于等于20%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#sj_yp").val() < -1 || $("#sj_yp").val() > 20) {
                layer.msg('【身为【超推】获得语音奖励比例】设置错误【只能-1为系统默认，或者小于等于20%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#sj_sp").val() < -1 || $("#sj_sp").val() > 20) {
                layer.msg('【身为【超推】获得视频奖励比例】设置错误【只能-1为系统默认，或者小于等于20%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#sj_lw").val() < -1 || $("#sj_lw").val() > 20) {
                layer.msg('【身为【超推】获得礼物奖励比例】设置错误【只能-1为系统默认，或者小于等于20%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }


            if ($("#ssj_wz").val() < -1 || $("#ssj_wz").val() > 20) {
                layer.msg('【身为【运营】获得文字奖励比例】设置错误【只能-1为系统默认，或者小于等于20%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#ssj_yp").val() < -1 || $("#ssj_yp").val() > 20) {
                layer.msg('【身为【运营】获得语音奖励比例】设置错误【只能-1为系统默认，或者小于等于20%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#ssj_sp").val() < -1 || $("#ssj_sp").val() > 20) {
                layer.msg('【身为【运营】获得视频奖励比例】设置错误【只能-1为系统默认，或者小于等于20%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#ssj_lw").val() < -1 || $("#ssj_lw").val() > 20) {
                layer.msg('【身为【运营】获得礼物奖励比例】设置错误【只能-1为系统默认，或者小于等于20%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }


            if ($("#sssj_wz").val() < -1 || $("#sssj_wz").val() > 20) {
                layer.msg('【身为【产品】获得文字奖励比例】设置错误【只能-1为系统默认，或者小于等于20%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#sssj_yp").val() < -1 || $("#sssj_yp").val() > 20) {
                layer.msg('【身为【产品】获得语音奖励比例】设置错误【只能-1为系统默认，或者小于等于20%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#sssj_sp").val() < -1 || $("#sssj_sp").val() > 20) {
                layer.msg('【身为【产品】获得视频奖励比例】设置错误【只能-1为系统默认，或者小于等于20%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#sssj_lw").val() < -1 || $("#sssj_lw").val() > 20) {
                layer.msg('【身为【产品】获得礼物奖励比例】设置错误【只能-1为系统默认，或者小于等于20%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }


            if ($("#sj_cz").val() < -1 || $("#sj_cz").val() > 35) {
                layer.msg('【身为【女孩】获得【充值】奖励比例（扫码绑定）】设置错误【只能-1为系统默认，或者小于等于35%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#sj_hbcz").val() != -1 ) {
                if($("#sj_hbcz").val() != 40){
                    layer.msg('【身为【女孩】获得【开通VIP】奖励比例（VIP绑定）】设置错误【只能-1为系统默认，或者等于40%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                    return false;
                }
            }


            if ($("#ssj_cz").val() < -1 || $("#ssj_cz").val() > 30) {
                layer.msg('【身为【超推】获得【充值或开通VIP】奖励比例（扫码绑定）】设置错误【只能-1为系统默认，或者小于等于30%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#ssj_hbcz").val() < -1 || $("#ssj_hbcz").val() > 30) {
                layer.msg('【身为【超推】获得【充值或开通VIP】奖励比例（VIP绑定）】设置错误【只能-1为系统默认，或者小于等于30%】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }


            if ($("#sssj_cz").val() < -1) {
                layer.msg('【身为【运营】获得【充值或开通VIP】奖励比例（扫码绑定）】设置错误【只能大于或等于-1，-1时为系统默认】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#sssj_hbcz").val() < -1) {
                layer.msg('【身为【运营】获得【充值或开通VIP】奖励比例（VIP绑定）】设置错误【只能大于或等于-1，-1时为系统默认】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }


            if ($("#ssssj_cz").val() < -1) {
                layer.msg('【身为【产品】获得【充值或开通VIP】奖励比例（扫码绑定）】设置错误【只能大于或等于-1，-1时为系统默认】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }
            if ($("#ssssj_hbcz").val() < -1) {
                layer.msg('【身为【产品】获得【充值或开通VIP】奖励比例（VIP绑定）】设置错误【只能大于或等于-1，-1时为系统默认】', {icon: 2, scrollbar: false,offset:'200px',time: 10000});
                return false;
            }



            //如果没有定义ID去查询data-data属性
            if (dataId === undefined) {
                dataData = $(this).data("data") || {};
            } else {
                dataData = {
                    "member_id": $("#member_id").val(),

                    "zs_wz": $("#zs_wz").val(),
                    "zs_sp": $("#zs_sp").val(),
                    "zs_yp": $("#zs_yp").val(),
                    "zs_lw": $("#zs_lw").val(),
                    "sj_wz": $("#sj_wz").val(),
                    "sj_yp": $("#sj_yp").val(),
                    "sj_sp": $("#sj_sp").val(),
                    "sj_lw": $("#sj_lw").val(),
                    "ssj_wz": $("#ssj_wz").val(),
                    "ssj_yp": $("#ssj_yp").val(),
                    "ssj_sp": $("#ssj_sp").val(),
                    "ssj_lw": $("#ssj_lw").val(),
                    "sssj_wz": $("#sssj_wz").val(),
                    "sssj_yp": $("#sssj_yp").val(),
                    "sssj_sp": $("#sssj_sp").val(),
                    "sssj_lw": $("#sssj_lw").val(),
                    "sj_cz": $("#sj_cz").val(),
                    "sj_hbcz": $("#sj_hbcz").val(),
                    "ssj_cz": $("#ssj_cz").val(),
                    "ssj_hbcz": $("#ssj_hbcz").val(),
                    "sssj_cz": $("#sssj_cz").val(),
                    "sssj_hbcz": $("#sssj_hbcz").val(),
                    "ssssj_cz": $("#ssssj_cz").val(),
                    "ssssj_hbcz": $("#ssssj_hbcz").val(),

                };
            }

            if (typeof (dataData) != 'object') {
                dataData = JSON.parse(dataData);
            }

            /*需要确认操作*/
            if (parseInt(layerConfirm) === 1) {
                //提示窗口的标题
                let confirmTitle = $(this).data("confirmTitle") || '操作确认';
                //提示窗口的内容
                let confirmContent = $(this).data("confirmContent") || '您确定要执行此操作吗?';
                layer.confirm(confirmContent, {title: confirmTitle, closeBtn: 1, icon: 3,offset:'200px'}, function () {
                    //如果为直接访问
                    if (layerType === 1) {
                        ajaxRequests(url, layerMethod, dataData, go);
                    } else if (layerType === 2) {
                        //如果为打开窗口
                        //先进行权限查询
                        if (checkAuth(url)) {
                            layer.open({
                                type: 1,
                                area: [layerWith, layerHeight],
                                title: layerTitle,
                                closeBtn: 1,
                                shift: 0,offset:'200px',
                                content: url + "?request_type=layer_open&" + parseParam(dataData),
                                scrollbar: false,
                            });
                        }
                    }
                });
            } else {
                //不需要操作确认
                if (layerType === 1) {
                    //直接请求
                    ajaxRequests(url, layerMethod, dataData, go);
                } else if (layerType === 2) {
                    //弹出窗口
                    //检查权限
                    if (checkAuth(url)) {
                        //用窗口打开
                        layer.open({
                            type: 2,
                            area: [layerWith, layerHeight],
                            title: layerTitle,
                            closeBtn: 1,
                            shift: 0,offset:'200px',
                            content: url + "?request_type=layer_open&" + parseParam(dataData),
                            scrollbar: false,
                        });
                    }
                }
            }
        });

        function ajaxRequests(url, method, data, go) {
            let loadT = layer.msg('正在请求,请稍候…', {icon: 16, time: 0, shade: [0.3, '#000'], scrollbar: false,offset:'200px'});
            $.ajax({
                    url: url,
                    dataType: 'json',
                    type: method,
                    data: data,
                    success: function (result) {
                        // debugger
                        layer.close(loadT);
                        layer.msg(result.msg, {
                            icon: result.code ? 1 : 2,
                            scrollbar: false,
                            offset:'200px'
                        });

                        if (adminDebug) {
                            console.log('request success!');
                            if (result.code === 1) {
                                console.log('%cresult success', ';color:#00a65a');
                                go = 'url://close-refresh';
                            } else {
                                console.log('%cresult fail', ';color:#f39c12');
                                go = 'url://reload';
                            }
                            setTimeout(function () {
                                goUrl(go);
                            }, 2000);
                        }
                        // setTimeout("alert('123')", 3000 )

                    },
                    error: function (xhr, type, errorThrown) {
                        console.log("error")
                        //异常处理；
                        if (adminDebug) {
                            console.log('%crequest fail!', ';color:#dd4b39');
                            console.log();
                            console.log("type:" + type + ",readyState:" + xhr.readyState + ",status:" + xhr.status);
                            console.log("url:" + url);
                            console.log("data:");
                            console.log(data);
                            layer.close(loadT);
                        }
                        layer.msg('访问错误,代码' + xhr.status, {icon: 2, scrollbar: false,});
                    }
                }
            );
        }
    </script>

    {/block}